Skip to main content

GET Order

Request the status of the order on the LetsGetChecked server for a specific client.

Request

Endpoint

GET {clientId}/api/v2/orders/{clientOrderId}

Headers

The GET Order API requires the following information in the headers of an HTTP request:

HTTP HeaderDescription
AuthorizationThe HTTP Authorization request header contains the credentials to authenticate a user agent with a server.
AcceptThe HTTP Accept request header contains information about the content types, expressed as MIME types, that the client can understand. The MIME type for the GET Order API request is application/json.

Path parameters

ParameterDescriptionTypeRequired/Optional
clientIdThe clientId is a unique code that is provided by LetsGetChecked. The clientId is used to identify a client, when a client calls the Orders and Results APIs. The code is formed by 1 to 4 alphanumeric characters. The clientId displays in the HL7 results as PV1.3.1.stringRequired
clientOrderIdThe Client Order ID is a unique code associated with the order ID in the client's system. When you use the Order API, the clientOrderId will be your reference for the order in the LetsGetChecked system. The maximum length is 100 characters.stringRequired

Body

<Empty>

Response

The sample response is a single JSON object that contains the following fields:

PropertyDescriptionType
clientOrderIdThe Client Order ID is a unique code associated with a client.string
participantIdThe Participant ID must be unique and associated with a person in your system of record. It can be an employee ID or Customer ID. Do not reuse or recycle Participant IDs.string
orderItemsThe list of order items associated to the order.object(OrderItemModel)
orderItems /codeThe test kit code.string
orderItems /idThe order item identifier.string
orderItems /replacementOrderItemIdThe replacement order item identifier.string
orderItems /createdAtThe date and time, in UTC time, that the order was created at.string
orderItems /updatedAtThe timestamp, in UTC time, is in ISO 8601 format.string
orderItems /statusThe following values are possible:
  • Submitted
  • ValidationFailed
  • Created
  • KitDispatched
  • KitRegistered
  • KitArrivedAtLab
  • ResultsAvailable
  • Cancelled
For more information about order statuses, see Orders API.
string
orderItems /lgcKitIdentifierThe LetsGetChecked kit identifier. The value is null before the KitRegistered status.object(lgcKitIdentifier)
orderItems/lgcKitIdentifier /numericalCodeFormatted as LGC-0000-0000-0000, where 0 indicates any digit.string
orderItems/lgcKitIdentifier /alphaCodeFormatted as AAAAAA, where A indicates any uppercase letter from A to Z.string
orderItems /shipmentThe timestamp is in ISO 8601 format.object(Shipment)
orderItems/shipment /OutboundTrackingNumberThe mail carrier tracking number for a test kit that is sent from LetsGetChecked to a participant.string
orderItems/shipment /InboundTrackingNumberThe tracking number for the test sample that is returned by the participant to the LetsGetChecked laboratory.string

Status Codes

Status CodeDescription
200Ok. Order was found.
400Bad Request
401Unauthorized
404NotFound
415Unsupported media type. Payload in a unsupported format
500Server Error
503Server Error

Sample responses

200 (with only one order item)

This is a sample response for a client workflow ordering only one test kit in an order.

{
"clientOrderId":"275096",
"participantId":"824110",
"orderItems": [
{
"code": "FCIT",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"replacementOrderItemId": "",
"createdAt": "2023-03-18T14:07:31.4836772+00:00",
"updatedAt": "2023-04-10T21:50:03.9095135+01:00",
"status": {
"code": "KitRegistered"
},
"lgcKitIdentifier": {
"barcode": "LGC-2790-6273-7366",
"alphaCode": "MGSTSM"
},
"shipment": {
"outboundTrackingNumber": "96740002733921443423848388",
"inboundTrackingNumber": "96740002733921443423848398"
}
}
]
}

200 (with multiple order items)

This is a sample response for a client workflow ordering three different test kits in an order.

{
"clientOrderId":"275096",
"participantId":"824110",
"orderItems": [
{
"code": "FCIT",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"replacementOrderItemId": "",
"createdAt": "2023-03-18T14:07:31.4836772+00:00",
"updatedAt": "2023-04-10T21:50:03.9095135+01:00",
"status": {
"code": "KitRegistered"
},
"lgcKitIdentifier": {
"barcode": "LGC-2790-6273-7366",
"alphaCode": "MGSTSM"
},
"shipment": {
"outboundTrackingNumber": "96740002733921443423848387",
"inboundTrackingNumber": "96740002733921443423848355"
}
},
{
"code": "GLCS",
"id": "4da85f64-5717-4562-b3fc-2c963f66afa5",
"replacementOrderItemId": "",
"createdAt": "2023-04-27T10:21:04.9435347+01:00",
"updatedAt": "2023-04-19T07:58:16.062391+01:00",
"status": {
"code": "Created"
},
"lgcKitIdentifier": {
"barcode": "LGC-3616-7700-3824",
"alphaCode": "TCTNFK"
},
"shipment": {
"outboundTrackingNumber": "",
"inboundTrackingNumber": ""
}
},
{
"code": "UACR",
"id": "2aa85f64-5717-4562-b3fc-2c963f66afa3",
"replacementOrderItemId": "",
"createdAt": "2023-01-02T07:51:31.7936286+00:00",
"updatedAt": "2022-11-23T12:26:09.3319907+00:00",
"status": {
"code": "KitRegistered"
},
"lgcKitIdentifier": {
"barcode": "LGC-3571-9812-0358",
"alphaCode": "ZORGAC"
},
"shipment": {
"outboundTrackingNumber": "96740002733921443423848383",
"inboundTrackingNumber": "96740002733921443423848398"
}
}
]
}

200 (with replacement information)

{
"clientOrderId":"275097",
"participantId":"824110",
"orderItems": [
{
"code": "FCIT",
"id": "4da85f64-5717-4562-b3fc-2c963f66afa5",
"replacementOrderItemId": "3fa85f64-5717-4562-b3fc-2c963f66afb6",
"createdAt": "2023-03-18T14:07:31.4836772+00:00",
"updatedAt": "2023-04-10T21:50:03.9095135+01:00",
"status": {
"code": "Cancelled"
},
"lgcKitIdentifier": {
"barcode": "LGC-2790-6273-7366",
"alphaCode": "MGSTSM"
},
"shipment": {
"outboundTrackingNumber": "96740002733921443423848382",
"inboundTrackingNumber": "96740002733921443423848383"
}
},
{
"code": "FCIT",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afb6",
"replacementOrderItemId": "",
"createdAt": "2023-04-27T10:21:04.9435347+01:00",
"updatedAt": "2023-04-19T07:58:16.062391+01:00",
"status": {
"code": "Created"
},
"lgcKitIdentifier": {
"barcode": "LGC-3616-7700-3824",
"alphaCode": "TCTNFK"
},
"shipment": {
"outboundTrackingNumber": "",
"inboundTrackingNumber": ""
}
},
{
"code": "UACR",
"id": "2ba85f64-5717-4562-b3fc-2c963f66afb5",
"replacementOrderItemId": "",
"createdAt": "2023-01-02T07:51:31.7936286+00:00",
"updatedAt": "2022-11-23T12:26:09.3319907+00:00",
"status": {
"code": "KitRegistered"
},
"lgcKitIdentifier": {
"barcode": "LGC-3571-9812-0358",
"alphaCode": "ZORGAC"
},
"shipment": {
"outboundTrackingNumber": "96740002733921443423848381",
"inboundTrackingNumber": "96740002733921443423848345"
}
}
]
}